<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
<link    rel="stylesheet" th:href="@{/css/bootstrap.css}"></link>
</head>
<body class="container">
<h1 class="h1 align-content-center">内容</h1>
<br><br>
<table class="table table-hover" >
    <thead>
    <tr class="active">
        <td>id</td>
        <td>username</td>
        <td>content</td>
    </tr>
    </thead>

    <tbody>
    <tr th:each="user:${users}">
        <td th:text="${user.id}">

        </td>
        <td th:text="${user.username}"></td>
        <td th:text="${user.content}"></td>

 <td><a th:href="@{/delete(id=${user.id})}">删除</a> </td>
        <td><a th:href="@{/toEdit(id=${user.id})}">修改</a> </td>
    </tr>

    <tr>
        <td><a th:href="@{/Toadd}">添加</a> </td>
    </tr>


    </tbody>
</table>

</body>
</html>